[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 I2S(IEXP1,IEXP2) (STRING)

 Function
  Convert an integer to a string in a specified number base.

 Syntax
  I2S(int,base)

   int  = Any integer expression to convert to string format.
   base = An integer expression with the number base (2 through 36) to
          convert to.

 Return Type & Value
  STRING
  Returns the int converted to a string in the specified number base.

 Remarks
  People work with decimal (base 10) numbers, whereas computers work with
  binary (base 2) numbers.  It is often more convienient to display numbers
  in a format other than decimal for clarity, compactness, or other
  reasons.  This function will convert a number to string format in any
  number base from 2 to 36.  So, I2S(10,2) would return a string of "1010";
  I2S(35,36) would return "Z".  For more information on number bases,
  consult .

 Examples
  INTEGER i,num
  INPUTINT "Enter a number (decimal)",num,@X0E
  FOR i = 2 TO 36
    PRINTLN num," base 10 = ",I2S(num,i)," base ",i
  NEXT

See Also: S2I()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson